<?php 
session_start();          
	require_once "../includes/config.php";
	//require_once "../includes/functions.php";
	
	$refId		= $_REQUEST['ref_code'];
	$sqlSelProfile	= "select * from tb1_referral_code where ref_id=$refId";
	$rstSelProfile	= mysql_query($sqlSelProfile);
	$rowSelProfile	= mysql_fetch_array($rstSelProfile);
	
	$refCode	= $rowSelProfile['ref_code'];
	$post_date	= date("Y-m-d", $rowSelProfile['post_date']);
	?>
<style type="text/css">
	table#tbl-profile tr td { vertical-align:middle; }
</style>
<table width="100%" border="1" cellspacing="0" class='container'>
	<tr><td height="26" class="tdHeader">Referral Code</td></tr>
	<tr>
		<td>
			<table id="tbl-profile" width="80%" align="center"  border="0" cellspacing="0" cellpadding="0">
				<tr><td colspan="3" height="25">&nbsp;</td></tr>
				<tr>
					<td width="37">&nbsp;</td>
					<td width="215" height="33"><b>Referral Code</b> </td>
					<td width="380" height="33"><?php echo $refCode; ?></td>
				</tr>
				
				<tr>
					<td width="37" bgcolor="#FBF1F1">&nbsp;</td>
					<td width="215" height="33" bgcolor="#FBF1F1"><b>Post Date</b> </td>
					<td width="380" height="33" bgcolor="#FBF1F1"><?php echo $post_date; ?></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td height="98" colspan="2" ><a href="index.php?ref_code">Back To List</a></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
